package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName OrderDetailMapper
 * @Description 订单明细持久层映射接口
 * @Author sld
 * @Date 2024/7/14 9:16
 * Version 1.0
 **/
@Mapper
public interface OrderDetailMapper {
    // 批量插入订单明细数据
    void insertBatch(ArrayList<OrderDetail> orderDetailList);

    /**
     * 根据订单id查询订单明细
     * @param orderId
     * @return
     */
    List<OrderDetail> getByOrderId(Long orderId);
}
